﻿<baseview:BaseHostView x:Class="CharacterCreation.Views.StatisticsHostView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:baseview="clr-namespace:CharacterCreation.Views.Contracts" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Background="AliceBlue" BorderBrush="LightGray" BorderThickness="0,0,0,1">
            <TextBlock Text="Statistics" FontSize="24" Foreground="#FF35496A" FontWeight="Bold" FontStretch="ExtraExpanded" Margin="10" 
                       VerticalAlignment="Center"/>
        </Border>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <ListBox Grid.Column="0" ItemsSource="{Binding StatisticViews}" SelectedItem="{Binding SelectedStatisticView, Mode=TwoWay}" x:Name="lst" Width="60">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Image Margin="5" Source="{Binding ViewImage}" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

            <ContentControl Content="{Binding SelectedStatisticView}" Padding="5" Grid.Column="1"/>
        </Grid>
    </Grid>
</baseview:BaseHostView>
